﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Moq;
using RMD.Modal;

namespace RMD.Tests
{
    public class IVoucherRepositoryMockHelper
    {
        public static IVoucherRepository MockVoucherRepository(params Voucher[] vouchers)
        {
            var mockRepos = new Mock<IVoucherRepository>();
            mockRepos.Setup(repos => repos.GetVouchers()).Returns(vouchers.ToList());
            return mockRepos.Object;
        }
    }
}
